
{% extends "./templates/master.html" %}

{% block htmlHeader %}

<script>
  // Load jQuery
  google.load("jquery", "1");

  // on page load complete, attach an alert to every anchor tag.
  // OK, it's pointless, but I'm loading jQuery on demand from google,
  // that's pretty neat!
  google.setOnLoadCallback(function() {
	  $("a").click(function() {
		     alert("booyah.");
		   });
    });
</script>

{% endblock %}

{% block content %}

    {% for greeting in greetings %}
      {% if greeting.author %}
        <b>{{ greeting.author.nickname }}</b> wrote:
      {% else %}
       An anonymous person wrote:
      {% endif %}
      <blockquote>{{ greeting.content|escape }}</blockquote>
    {% endfor %}

    <a href="#">Click me!</a>
    
    <form action="/sign" method="post">
      <div><textarea name="content" rows="3" cols="60"></textarea></div>
      <div><input type="submit" value="Sign Guestbook"></div>
    </form>


    <a href="{{ url }}">{{ url_linktext }}</a>

{% endblock %}
